package edu.iupui.csci.mortgageplanner;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class DisplayAvailableRatesActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_display_available_rates);
		
		WebView getRates = (WebView) findViewById(R.id.webView1);
		getRates.getSettings().setJavaScriptEnabled(true);
		getRates.setWebViewClient(new WebViewClient(){
        public boolean shouldOverrideUrlLoading(WebView view, String url) {
            return (false);
        }});
		getRates.loadUrl("http://www.zillow.com/mortgage-rates?request=ZR-TLQDSQM");
		//getRates.loadUrl("http://google.com/");
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.display_available_rates, menu);
		return true;
	}

}
